package com.zjq.springsocial.renren.connect;

import org.springframework.social.oauth2.AbstractOAuth2ServiceProvider;

import com.zjq.springsocial.renren.api.Renren;
import com.zjq.springsocial.renren.api.impl.RenrenTemplate;

/**
 * 
 *<P>人人网服务提供类的实现</P> 
 *
 * @author zhongjingquan
 *
 * @version 0.0.1-SNAPSHOT 2013-7-17下午5:36:54
 */
public class RenrenServiceProvider extends AbstractOAuth2ServiceProvider<Renren>{

	public RenrenServiceProvider(String clientId, String clientSecret){
		super(new RenrenOAuth2Template(clientId, clientSecret));
	}
	
	@Override
	public Renren getApi(String accessToken) {
		return new RenrenTemplate(accessToken);
	}

}
